<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">{:__('任务标题')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-type" class="control-label col-xs-12 col-sm-2">{:__('任务类型')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-type" data-rule="required" class="form-control" name="row[type]" type="text" value="{$row.type|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-rwurl" class="control-label col-xs-12 col-sm-2">{:__('任务链接')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-rwurl" class="form-control" name="row[rwurl]" type="text" value="{$row.rwurl|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-gender" class="control-label col-xs-12 col-sm-2">{:__('支付类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[buytype]', ['支付宝'=>__('支付宝'), '微信'=>__('微信'), '余额'=>__('余额'), '网银'=>__('网银'), ''=>__('其他')], $row['buytype'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-ishot" class="control-label col-xs-12 col-sm-2">{:__('是否推荐')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[ishot]', ['1'=>__('未推荐'), '2'=>__('已推荐')], $row['ishot'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-gender" class="control-label col-xs-12 col-sm-2">{:__('支付状态')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[paytype]', ['2'=>__('已支付'), '1'=>__('未支付')], $row['paytype'])}
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
